package org.example.init;

import org.example.actuator.distribute.*;
import org.example.utils.SqlTypeMapUtil;

import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public class Context {

    public static ConcurrentHashMap<String, SqlTypeMapUtil.ConvertBean> convertMap;

    public static HashMap<Object, List<Class>>  hashMap;


    public static final  AbstractDbHandler.Builder dbHandler=new AbstractDbHandler.Builder();


    public  static  final  Init manager=new Init();

    static  class Init {

        static {
            convertMap = SqlTypeMapUtil.getInstance().convertMapInit();
            hashMap= FactoryBuilder.initBuilder();
            dbHandler.addHandler(new Db2Handler()).
                     addHandler(new MysqlHandler()).
                     addHandler(new OracleHandler()).
                     addHandler(new PostgreSqlHandler()).build();


        }


    }



}
